package com.lyl.momanapp.xin;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.ImageView;

import com.lyl.momanapp.R;
import com.lyl.momanapp.frament.OneOne;
import com.xinlan.imageeditlibrary.BaseActivity;

/**
 * Created by MI on 2018/1/18.
 */

public class YeActivity extends BaseActivity {
    ImageView fanhui;
    ImageView zhuye;
    YeFragment yeFragment;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_xin);
        fanhui = (ImageView) findViewById(R.id.fanhui);
        zhuye = (ImageView) findViewById(R.id.zhuye);
        yeFragment = new YeFragment();
        fanhui.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });
        zhuye.setVisibility(View.GONE);
        this.getSupportFragmentManager().beginTransaction().add(R.id.two_fl, yeFragment).disallowAddToBackStack().commit();
    }
}
